import News from './news.vue'
import NewsSearch from './newsSearch.vue'
import NewsEdit from './newsEdit.vue'
import NewsAdd from './newsAdd.vue'
import NewsView from './newsView.vue'

const components = [
  News,
  NewsSearch,
  NewsEdit,
  NewsAdd,
  NewsView
]

const main = {
  install(Vue) {
    components.map((component) => {
      Vue.component(component.name, component)
    })
  }
}
export default main
